import {BasicColumn, FormSchema} from '@apps/antd-admin/src/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '经销商名称',
    dataIndex: 'distributorName',
    width: 200,
  },
  {
    title: '负责人',
    dataIndex: 'userName',
    width: 200,
  },
  {
    title: '联系电话',
    dataIndex: 'userPhone',
    width: 200,
  },
  {
    title: '创建时间',
    dataIndex: 'createDate',
    width: 200,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'distributorName',
    label: '合作商名称',
    component: 'Input',
    colProps: {span: 5}
  },
];

export const formSchema: FormSchema[] = [
  {
    label: '经销商Id',
    field: 'distributorId',
    component: 'Input',
    required: false,
    show: false,
  },
  {
    label: '经销商名称',
    field: 'distributorName',
    component: 'Input',
    required: true,
  },
  {
    label: '负责人',
    field: 'userName',
    component: 'Input',
    required: true,
  },
  {
    label: '联系电话',
    field: 'userPhone',
    component: 'Input',
    required: true,
  }
];
